﻿@using Microsoft.AspNetCore.Mvc.Localization;
@inject IViewLocalizer Localizer
@using LView.CMS.Models;
@model List<LMSManagerRole>
@{
    ViewData["Title"] = "任务管理";
}

<form class="layui-form layui-form-pane" style="width:100%;">
    @Html.AntiForgeryToken()
    @Html.Hidden("Id")
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">@Localizer["Task"]</label>
        <div class="layui-input-block">
            <input type="text" name="Name" class="layui-input Name" lay-verify="required|Name" placeholder="@Localizer["TaskPlaceholder"]">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">@Localizer["ExpirationTime"]</label>
        <div class="layui-input-block">
            <input type="text" readonly class="layui-input" id="expireDate">
        </div>
    </div>
    <div class="layui-form-item layui-form-text layui-col-xs12">
        <label class="layui-form-label">@Localizer["TaskDesc"]</label>
        <div class="layui-input-block">
            <textarea placeholder="@Localizer["TaskDescPlaceholder"]" style="height:70%" name="Description" class="layui-textarea Description"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="addTask">@Localizer["Submit"]</button>
            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">@Localizer["Reset"]</button>
        </div>
    </div>
</form>
@section Scripts{
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script type="text/javascript" src="~/js/LMSTask/taskAdd.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}
